﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace BeerManagementSystem
{
    /// <summary>
    /// Interaktionslogik für Report.xaml
    /// </summary>
    public partial class Report : Window
    {
        public Report()
        {
            InitializeComponent();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {

            BeerManagementSystem.BeerBaseDataSet beerBaseDataSet = ((BeerManagementSystem.BeerBaseDataSet)(this.FindResource("beerBaseDataSet")));
            // Lädt Daten in Tabelle "Transactions". Sie können diesen Code nach Bedarf ändern.
            BeerManagementSystem.BeerBaseDataSetTableAdapters.TransactionsTableAdapter beerBaseDataSetTransactionsTableAdapter = new BeerManagementSystem.BeerBaseDataSetTableAdapters.TransactionsTableAdapter();
            beerBaseDataSetTransactionsTableAdapter.Fill(beerBaseDataSet.Transactions);
            System.Windows.Data.CollectionViewSource transactionsViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("transactionsViewSource")));
            transactionsViewSource.View.MoveCurrentToFirst();
            BeerManagementSystem.BeerdocterDataSet beerdocterDataSet = ((BeerManagementSystem.BeerdocterDataSet)(this.FindResource("beerdocterDataSet")));
            // Lädt Daten in Tabelle "Beerdocter". Sie können diesen Code nach Bedarf ändern.
            BeerManagementSystem.BeerdocterDataSetTableAdapters.BeerdocterTableAdapter beerdocterDataSetBeerdocterTableAdapter = new BeerManagementSystem.BeerdocterDataSetTableAdapters.BeerdocterTableAdapter();
            beerdocterDataSetBeerdocterTableAdapter.Fill(beerdocterDataSet.Beerdocter);
            System.Windows.Data.CollectionViewSource beerdocterViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("beerdocterViewSource")));
            beerdocterViewSource.View.MoveCurrentToFirst();
        }
    }
}
